import cv2
path = './2.jpg'
path2 = './1.jpg'
img2 = cv2.imread(path2)
img = cv2.imread(path)
rimg = cv2.resize(img,(800,800))
print(rimg.shape)
# img[:10,:,:] = (0, 0, 0)
# img[10:, :, :] = (50, 60, 70)
# img[:, 590:, :] = (50, 60, 70)
# img[:, :10, :] = (50, 60, 70)

img2[100:900,100:900] = cv2.addWeighted(rimg,1,img2[100:900,100:900],0,0)


cv2.imshow('res', img2)
cv2.waitKey(0)
cv2.destroyAllWindows()